gitlab设置某个项目添加某个用户可以编辑权限

您所在的位置:网站首页 gitlab 管理员权限 gitlab设置某个项目添加某个用户可以编辑权限

gitlab设置某个项目添加某个用户可以编辑权限

2023-08-17 20:18| 来源: 网络整理| 查看: 265

现在我们来设置我们GitLab上的SSH:

1、某人需要登陆gitlab,需要首先自己注册账号

2.首先我们在git中使用‘’$ ssh-keygen -t rsa -C ‘xxx@email.com’.然后会有让你设置密码的几条语句,我们直接按回车设置成空,然后它会返回一个图(我也不知道有什用),在图上面你能找到一个文件.ssh的地址,然后在你的电脑上找到这个地址,然后打开里面的公钥文件复制。

3.使用个人账号登陆自己的GitLab网页,进入个人设置的settings选项

通过下面的操作添加自己的公钥

4、项目管理员登陆

5、选择要开放给这个用户的项目

6、选择项目setting下面members

7、按照如下操作添加之前注册的用户

注意permission的选择会影响此用户对项目的操作权限

下面列表是不同权限对应的操作权限(两个表格来自不同的文章)

Project

表一:The following table depicts the various user permission levels in a project.

ActionGuestReporterDeveloperMasterOwnerCreate new issue?????Create confidential issue?????View confidential issues(?) 1????Leave comments?????See a list of jobs? 2????See a job log? 2????Download and browse job artifacts? 2????View wiki pages?????Pull project code ????Download project ????Create code snippets ????Manage issue tracker ????Manage labels ????See a commit status ????See a container registry ????See environments ????Create new environments  ???Use environment terminals   ??Stop environments  ???See a list of merge requests ????Manage/Accept merge requests  ???Create new merge request  ???Create new branches  ???Push to non-protected branches  ???Force push to non-protected branches  ???Remove non-protected branches  ???Add tags  ???Write a wiki  ???Cancel and retry jobs  ???Create or update commit status  ???Update a container registry  ???Remove a container registry image  ???Create new milestones   ??Add new team members   ??Push to protected branches   ??Enable/disable branch protection   ??Turn on/off protected branch push for devs   ??Rewrite/remove Git tags   ??Edit project   ??Add deploy keys to project   ??Configure project hooks   ??Manage runners   ??Manage job triggers   ??Manage variables   ??Manage pages   ??Manage pages domains and certificates   ??Switch visibility level    ?Transfer project to another namespace    ?Remove project    ?Force push to protected branches 3     Remove protected branches 3     Remove pages    ?

 

表二:下表显示了不同类型用户的可用权限级别:

编号GuestReporterDeveloperMaster1创建新问题创建新问题创建新问题创建新问题2可发表评论可发表评论可发表评论可发表评论3能够在项目墙上写内容能够在项目墙上写内容能够在项目墙上写内容能够在项目墙上写内容4—能够拉取项目代码能够拉取项目代码能够拉取项目代码5—可下载项目可下载项目可下载项目6—能够编写代码片段能够编写代码片段能够编写代码片段7——创建新的合并请求创建新的合并请求8——创建新的分支创建新的分支9——推送并移除不受保护的分支推送并移除不受保护的分支10——包含标签包含标签11——可创建,编辑,删除项目里程碑可以创建,编辑,删除项目里程碑12——可创建或更新提交状态可创建或更新提交状态13——写一个维基写一个维基14——创建新的环境创建新的环境15——取消并重试作业取消并重试作业16——更新并删除注册表映像更新并删除注册表映像17———可添加新的团队成员18———推动并移除受保护的分支19———可编辑项目20———可以管理runner,runner触发器和变量21———将部署密钥添加到项目22———能够管理群集23———配置项目钩件24———可以启用/禁用分支保护25———能够重写或删除Git标签

//原文出自【易百教程】,商业转载请联系作者获得授权,非商业转载请保留原文链接:https://www.yiibai.com/gitlab/gitlab_user_permissions.html  



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3